﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace Corina.Events
{
    public class PropertyArgs : EventArgs
    {
        public PropertyArgs() { }

        public PropertyArgs(Type type, string propertyName)
        {
            Property = type.GetProperty(propertyName);
            Value = Property.GetValue(this, null);
        }

        public PropertyInfo Property { get; set; }
        public object Value
        {
            get;
            set;
        }
    }
}
